package com.yunhe.authority.service.wechat;

import com.yunhe.authority.domain.wechat.WechatLoginRecord;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhengbo
 * @date 2021/2/24 10:20
 */
public interface WechatLoginRecordService {

    WechatLoginRecord save(WechatLoginRecord wechatLoginRecord);

    List<WechatLoginRecord> findByOpenid(String openid);

    List<WechatLoginRecord> findByUnionid(String unionid);

    WechatLoginRecord findByPhone(String phone);

    WechatLoginRecord findByUserIdAndOpenid(Long userId, String openid);

}
